<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<style type="text/css">
	.introduction{
		width:100px;
		text-overflow:ellipsis;
		white-space:nowrap;
		overflow:hidden;
	}
</style>
<div class="table-responsive">
<table class="cntable table table-bordered dataTable table-withdrawApplyfor">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th style="width:130px">文章标题</th>
			<th style="width:130px">文章分类</th>
			<th style="width:100px">文章重要性</th>
			<th style="width:100px">是否显示</th>
			<th style="width:100px">媒体类型</th>
			<th style="width:100px">视频简介</th>
			<th style="width:130px">添加日期</th>			
		</tr>
	</thead>
	<tbody>
		<c:forEach var="artical" items="${articals}" varStatus="status">
			<tr data-id="${artical.id}">
				<td>${status.index+1}</td>
				<td>${artical.title}</td>
				<td>${artical.style}</td>
				<td> 
				<t:provider packageName="official" enumClassName="ImportantType" value="${artical.importantType}"/>
				</td>
			
					<c:if test="${artical.display eq 0}">
					<td style="color:green">是</td>
					</c:if>
					<c:if test="${artical.display eq 1}">
					<td style="color:red">否</td>
					</c:if>
				<td>
				<t:provider packageName="official" enumClassName="MedioType" value="${artical.medioType}"/>
				</td>
				<td>
					<div class="introduction">${artical.introduction}</div>
				</td>
				<td>
				   <fmt:formatDate value="${artical.createTime}" type="date" dateStyle="default" pattern="yyyy-MM-dd HH:mm:ss"/>  
				</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th absolute-pos">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>
</div>